<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

 class Signout extends Controller{

        function index() {
		$this->set('title','YOU - Profile');
                global $session;
                $id = $session->get('userid');
                $this->SignoutModel->setLogout($id);

                $session->destroy();
                $this->_auto_render = FALSE;
                $this->redirect(BASE_PATH);
	}

        function beforeAction(){
		$this->set('title',null);
	}
 }